import { Loading } from "element-ui";

const services = {
  loading(node) {
    return Loading.service({
      target: document.querySelector(node),//loading需要覆盖的DOM节点，默认为body
      text: "正在加载中",//加载文案
      lock: true,//同v-loading的修饰符
      // backgroundColor: 'rgba(55,55,55,0.4)',//背景色
      // spinner: 'el-icon-loading',//加载图标
    })
  }
}

export default services;